<template>
  <div class="err404">
    <h4>您访问的页面不见了！</h4>
    <h5>
      <RouterLink to="/oj/layout/question" class="go-home">去首页</RouterLink>
    </h5>
  </div>
</template>

<script setup>
</script>

<style scoped>
.err404 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box;
}

.err404 h4 {
  font-size: 24px;
  color: #191919;
  margin-bottom: 16px;
}

.err404 .go-home {
  width: 130px;
  height: 38px;
	margin-right: 20px;
  background: #c9141d;
  line-height: 38px;
  font-size: 16px;
  color: #fff;
  display: inline-block;
  border-radius: 2px;
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 400px) {
  .err404 {
    padding: 10px;
  }

  .err404 h4 {
    font-size: 20px;
  }

  .err404 .go-home {
    width: 100%;
    box-sizing: border-box;
  }
}
</style>